package com.wxxymaker.service;

import com.blade.ioc.annotation.Bean;
import com.blade.ioc.annotation.Inject;
import com.wxxymaker.model.dao.MemberDao;
import com.wxxymaker.model.entity.Member;
import io.github.biezhi.anima.page.Page;

/**
 * @Author: Soft
 * @Date: 2018/7/13 10:51
 * @Desc:
 */
@Bean
public class MemberService {
    @Inject
    private MemberDao dao;

    public Member add(Member member) {
        return dao.add(member);
    }

    public Member delete(int id) {
        return dao.delete(id);
    }

    public int change(Member member) {
        return dao.change(member);
    }

    public Page<Member> page(int pageNo) {
        return dao.page(pageNo);
    }

    public Page<Member> like(String name) {
        return dao.like(name);
    }

    public long count() {
        return dao.count();
    }
}
